package blip.jcaf.cm;

import java.rmi.RemoteException;

import blip.jcaf.cm.entity.Visitor;
import blip.jcaf.cm.monitor.Arrival;


public class Driver {
	Visitor visitors[];
	String blueT1;
	String blueT2;
	
	public Driver() {
		visitors = new Visitor[2];
		blueT1 = "1846178D12B3"; //Martin
		blueT2 = "404D8E180DDF"; //Anne
		visitors[0] = new Visitor(blueT1, "Martin");
		visitors[1] = new Visitor(blueT2, "Anne");
		Runnable em = new EntryMonitor();
		Thread thread = new Thread(em);
		thread.start();
		/*try {
			//@SuppressWarnings("unused")
			Arrival arrival = new Arrival("ArrivalID");
			arrival.visitorArrived(blueT1);
			arrival.visitorArrived(blueT2);
		} catch (RemoteException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}*/
	}
	public Visitor[] getVisitors() {
		return visitors;
	}
}
